package controllers;

import model.ServerResponse;

public abstract class ServerResponseCreator {
	public static ServerResponse buildResponse(boolean suc, int dataType, Object data, String res) {
		ServerResponse s = new ServerResponse(suc, dataType);
		s.setData(data);
		s.setRes(res);
		return s;
	}
	
	public static ServerResponse buildResponse(boolean suc, int dataType, Object data) {
		ServerResponse s = new ServerResponse(suc, dataType);
		s.setData(data);
		return s;
	}
	
	public static ServerResponse buildResponse(boolean suc, int dataType) {
		ServerResponse s = new ServerResponse(suc, dataType);
		return s;
	}
	
}
